load("@rules_cc//cc:defs.bzl", "cc_library")

package(default_visibility = ["//visibility:public"])

cc_library(
    name = "mid_camera_service",
    srcs = glob(
        [
            "*.cc",
            "*.h",
        ],
    ),
    deps = [
        "//base/io:base_io",
        "//base/device_connect/camera:base_camera_device",
        "@eigen//:eigen",
        "//base/common:base_common",
    ],
)

# cc_test(
#     name = "base_camera_ut",
#     srcs = [
#         "ut/camera_test.cc",
#         "camera_factory.h",
#         "camera_base.h",
#     ],
#     includes = [
#         ".",
#     ],
#     linkopts = [
#         "-L/airos-al/bazel-bin/camera",
#         "-lcamera_device",
#         "-pthread"
#     ],
#     deps = [
#         "@com_google_googletest//:gtest_main",
#     ],
# )

# cc_binary(
#     name = "base_camera_test_tool",
#     srcs = [
#         "test_tool/test_tool.cpp",
#         "camera_factory.h",
#         "camera_base.h",
#     ],
#     includes = [
#         ".",
#     ],
#     linkopts = [
#         "-L/airos-al/bazel-bin/camera",
#         "-lcamera_device",
#         "-pthread"
#     ],
#     deps = [
#         "@yaml_cpp//:yaml_cpp",
#     ],
# )